package com.efun.center.mapper;

import com.efun.center.entity.EmailServer;
import com.efun.center.entity.search.EmailServerSearch;
import com.efun.center.provider.EmailServerProvider;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.SelectProvider;

import java.util.List;

@Mapper
public interface EmailServerMapper {

    @SelectProvider(type= EmailServerProvider.class, method = "total")
    Long total(EmailServerSearch search);

    @SelectProvider(type= EmailServerProvider.class, method = "query")
    List<EmailServer> query(EmailServerSearch search);

}
